package com.zhang.sparkpublisher.mapper.impl;

import com.zhang.sparkpublisher.mapper.SparkPublisherMapper;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;

/**
 * @title:
 * @author: zhang
 * @date: 2022/3/30 11:08
 */
@Repository
public class SparkPublisherMapperImpl implements SparkPublisherMapper {

    @Override
    public Map<String, Object> getDauMapper(String td) {
        HashMap<String, Object> result = new HashMap<String, Object>();
        result.put("dauTotal",123);
        HashMap<String, Long> dauYd = new HashMap<String, Long>();
        dauYd.put("12",90L);
        dauYd.put("13",30L);
        dauYd.put("14",60L);
        dauYd.put("15",80L);
        result.put("dauYd",dauYd);

        HashMap<String, Long> dauTd = new HashMap<String, Long>();
        dauTd.put("11",190L);
        dauTd.put("12",130L);
        dauTd.put("13",10L);
        dauTd.put("14",80L);
        result.put("dauTd",dauTd);
        return result;
    }
}
